/**
 *
 * @author ilya portnyagin iportnyagin@gmail.com
 */

package ru.portnyagin.helpdeskru.controller;

import java.io.Serializable;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.model.SelectItem;
import ru.portnyagin.helpdeskru.util.JsfUtil;

@ManagedBean(name = "prioritytBean")
@ApplicationScoped
public class PrioritytBean implements Serializable {

    @EJB
    private ru.portnyagin.helpdeskru.service.PriorityService priorityService;
    
    private SelectItem[] priority;
    
    public PrioritytBean() {
    }

    public SelectItem[] getSelectItemPriority() {
        if(priority == null) {
            priority = JsfUtil.getSelectItems(priorityService.findAll(), false);
        }
        return priority;
    }

  

    
    
    
}


